$OpenBSD: patch-libsrc_Thread_sched_pthread_c,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
--- libsrc/Thread/sched_pthread.c.orig	Thu Aug  2 00:54:31 2012
+++ libsrc/Thread/sched_pthread.c	Tue Jan 29 19:31:22 2013
@@ -206,7 +206,7 @@ thread_initial (unsigned long stack_size)
   CKRET (rc);
 #endif
 
-#if defined (PTHREAD_PROCESS_PRIVATE) && !defined(oldlinux) && !defined(__FreeBSD__)
+#if defined (PTHREAD_PROCESS_PRIVATE) && !defined(oldlinux) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
   rc = pthread_mutexattr_setpshared (&_mutex_attr, PTHREAD_PROCESS_PRIVATE);
   CKRET (rc);
 #endif
@@ -1075,7 +1075,7 @@ mutex_allocate_typed (int type)
       if (!is_initialized)
 	{
 	  pthread_mutexattr_init (&_mutex_attr);
-#if defined (PTHREAD_PROCESS_PRIVATE) && !defined(oldlinux) && !defined (__FreeBSD__)	  
+#if defined (PTHREAD_PROCESS_PRIVATE) && !defined(oldlinux) && !defined (__FreeBSD__) && !defined(__OpenBSD__)
 	  rc = pthread_mutexattr_setpshared (&_mutex_attr, PTHREAD_PROCESS_PRIVATE);
 	  CKRET (rc);
 #endif
@@ -1132,7 +1132,7 @@ dk_mutex_init (dk_mutex_t * mtx, int type)
       if (!is_initialized) 
 	{
 	  pthread_mutexattr_init (&_attr);
-#if defined (PTHREAD_PROCESS_PRIVATE) && !defined (__FreeBSD__) && !defined(oldlinux)
+#if defined (PTHREAD_PROCESS_PRIVATE) && !defined (__FreeBSD__) && !defined(__OpenBSD__) && !defined(oldlinux)
 	  rc = pthread_mutexattr_setpshared (&_attr, PTHREAD_PROCESS_PRIVATE);
 	  CKRET (rc);
 #endif	  
